package cn.edu.suda.android.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.edu.suda.android.bean.Voter;
import cn.edu.suda.android.bean.VoterExample;
import cn.edu.suda.android.dao.VoterMapper;
import cn.edu.suda.android.service.VoterService;

@Service
public class VoterServiceImpl implements VoterService {

	@Autowired
	private VoterMapper voterDao;

	private VoterExample voterExample;

	@Override
	public List<Voter> selectVoter() {
		voterExample = new VoterExample();
		voterExample.createCriteria().andVIdIsNotNull();
		return voterDao.selectByExample(voterExample);
	}

}
